package com.xiyue.leaspring.vo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class DeptAn {

	@Value("#{item.createDate?.time}")
	private Long deptno;
	@Value("#{item.title.toUpperCase()}")
	private String dname;
	@Value("#{'中国北京'.substring(2,4)}")
	private String ioc;

	public Long getDeptno() {
		return deptno;
	}

	public void setDeptno(Long deptno) {
		this.deptno = deptno;
	}

	public String getDname() {
		return dname;
	}

	public void setDname(String dname) {
		this.dname = dname;
	}

	public String getIoc() {
		return ioc;
	}

	public void setIoc(String ioc) {
		this.ioc = ioc;
	}

	@Override
	public String toString() {
		return "DeptAn [deptno=" + deptno + ", dname=" + dname + ", ioc=" + ioc + "]";
	}

}
